QT       += core gui multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    source/audiodataprocess.cpp \
    source/commandprocess.cpp \
    source/main.cpp \
    source/mainwindow.cpp \
    source/messagelog.cpp \
    source/usbcommunication.cpp \
    source/widget_ir.cpp

HEADERS += \
    source/audiodataprocess.h \
    source/commandprocess.h \
    source/mainwindow.h \
    source/messagelog.h \
    source/usbcommunication.h \
    source/widget_ir.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


# message($${OUT_PWD})

include(config.pri)

lessThan(QT_MAJOR_VERSION, 6) {
    win32 {
        QT += axcontainer
    }
}

LIBS += -L$${_PRO_FILE_PWD_}/lib/qtadvanceddocking
msvc{
    LIBS += -L$${_PRO_FILE_PWD_}/lib/libusb/VS2015-x64/lib
    LIBS += -L$${_PRO_FILE_PWD_}/lib/wavpack/x64
    LIBS += -L$${_PRO_FILE_PWD_}/lib/libsndfile
    LIBS += -L$${_PRO_FILE_PWD_}/lib/libsamplerate
    LIBS += -L$${_PRO_FILE_PWD_}/lib/fftw/msvc
}
else {
    LIBS += -L$${_PRO_FILE_PWD_}/lib/libusb/MinGW-x64/lib
}

RESOURCES += $${_PRO_FILE_PWD_}/lib/qtadvanceddocking/src/ads.qrc

INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/qtadvanceddocking/src
INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/libusb
INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/wavpack
INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/libsndfile
INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/libsamplerate
INCLUDEPATH += $${_PRO_FILE_PWD_}/lib/fftw/msvc

DEPENDPATH  += $${_PRO_FILE_PWD_}/lib/qtadvanceddocking/src

DISTFILES +=

# message($$LIBS)
# message($$_PRO_FILE_PWD_)
